<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .search {
          display: flex;
          width: 100%;
        }
        /*搜索框样式*/
        .search-input {
          border: 1px solid rgba(0, 0, 0, 0.3);
          flex: 1;
          height: 35px;
          padding-left: 10px;
          outline: none;
        }
        /*搜索按扭样式*/
        .search-button {
          align-items: center;
          display: flex;
          justify-content: center;
          background-color: tomato;
          color: #fff;
          padding: 0px 20px;
          cursor: pointer;
        }
      </style>
</head>
<body>
    <div class="search">
        <input type="text" class="search-input" placeholder="请输入要搜索的内容" />
        <div class="search-button">搜索</div>
      </div>
</body>
</html>